package com.bdb.myswipemultitype.swipeListview_v2;

import android.support.annotation.NonNull;
import android.view.View;

public class ContentHolder {

    SwipeFrameBinder.FrameHolder frameHolder;

    public final View itemView;


    public ContentHolder(@NonNull final View itemView) {
        this.itemView = itemView;
    }

    @NonNull
    public SwipeFrameBinder.FrameHolder getParent() {
        return frameHolder;
    }


    public final int getAdapterPosition() {
        return getParent().getAdapterPosition();
    }


    public final int getLayoutPosition() {
        return getParent().getLayoutPosition();
    }


    public final int getOldPosition() {
        return getParent().getOldPosition();
    }


    public final boolean isRecyclable() {
        return getParent().isRecyclable();
    }


    public final void setIsRecyclable(boolean recyclable) {
        getParent().setIsRecyclable(recyclable);
    }
}